﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Xml;
using MCMLXVII.BackEnd.Services.Common.Messages;

#endregion

namespace MCMLXVII.BackEnd.Services.OrganizationChart.Messages
{
    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class msgNewOrganizationMember: msgSimpleNodeRequest
    {


        private string _Description;
        public string Description
        {
            get
            {
                return _Description;
            }
            set
            {
                _Description = value;
            }

        }


        private int _MemberClass;
        public int MemberClass
        {
            get
            {
                return _MemberClass;
            }
            set
            {
                _MemberClass = value;
            }
        }

        private msgXMLResponse _ClassProperties;
        public msgXMLResponse ClassProperties
        {
            get
            {
                return _ClassProperties;
            }
            set
            {
                _ClassProperties = value;
            }
        }

        private int _SecurityProviderID;
        public int SecurityProviderID
        {
            get
            {
                return _SecurityProviderID;
            }
            set
            {
                _SecurityProviderID=value;
            }

        }

        private string _LogonName;
        public string LogonName
        {
            get
            {
                return _LogonName;
            }
            set
            {
                _LogonName=value;
            }
        }

        private string _DirectoryIdentifier;
        public string DirectoryIdentifier
        {
            get
            {
                return _DirectoryIdentifier;
            }
            set
            {
                _DirectoryIdentifier=value;
            }
        }

        private string _Language;
        public string Language
        {
            get
            {
                return _Language;
            }
            set
            {
                _Language=value;
            }
        }

        private int _RoleMemberID;
        public int RoleMemberID
        {
            get
            {
                return _RoleMemberID;
            }
            set
            {
                _RoleMemberID=value;
            }
        }

        private int[] _MemberOf;
        public int[] MemberOf
        {
            get
            {
                return _MemberOf;
            }
            set
            {
                _MemberOf=value;
            }
        }



        public msgNewOrganizationMember()
        {

        }
        public msgNewOrganizationMember(int NodeID, string Description, int MemberClass, XmlReader ClassProperties, int SecurityProviderID, string LogonName, string DirectoryIdentifier, string Language, int roleMemberID, int[] memberOf): base(NodeID)
        {
            _ClassProperties = new msgXMLResponse(ClassProperties);
            _Description = Description;
            _DirectoryIdentifier = DirectoryIdentifier;
            _Language = Language;
            _LogonName = LogonName;
            _MemberClass = MemberClass;
            _SecurityProviderID = SecurityProviderID;
            _RoleMemberID = roleMemberID;
            _MemberOf = memberOf;

        }
        public msgNewOrganizationMember(int NodeID, string Description, int MemberClass, string ClassProperties, int SecurityProviderID, string LogonName, string DirectoryIdentifier, string Language, int roleMemberID, int[] memberOf): base(NodeID)
        {
            _ClassProperties = new msgXMLResponse(ClassProperties);
            _Description = Description;
            _DirectoryIdentifier = DirectoryIdentifier;
            _Language = Language;
            _LogonName = LogonName;
            _MemberClass = MemberClass;
            _SecurityProviderID = SecurityProviderID;
            _RoleMemberID = roleMemberID;
            _MemberOf = memberOf;
        }

    }

}
